import * as types from '../../../../src/container/weather/constant'

export const weatherConditionMock = {
  "coord": {
    "lon": 120.16,
    "lat": 30.29
  },
  "weather": [{
    "id": 801,
    "main": "Clouds",
    "description": "few clouds",
    "icon": "02d"
  }],
  "base": "stations",
  "main": {
    "temp": 15.39,
    "pressure": 1013.78,
    "humidity": 80, 
    "temp_min": 15.39,
    "temp_max": 15.39,
    "sea_level": 1030.58,
    "grnd_level": 1013.78
  },
  "wind": {
    "speed": 1.31,
    "deg": 56.0023
  },
  "clouds": {
    "all": 20
  },
  "dt": 1481531050,
  "sys": {
    "message": 0.0089,
    "country": "CN",
    "sunrise": 1481496396,
    "sunset": 1481533194
  },
  "id": 1808926,
  "name": "Hangzhou",
  "cod": 200
}

export const weatherConditionErrorCodeMock = {
  "cod": 401,
  "message": "Invalid API key. Please see http://openweathermap.org/faq#error401 for more info."
}

export const fetchWeatherConditionMock = {
  type: types.FETCH_WEATHER_CONDITION,
  url: 'http://api.openweathermap.org/data/2.5/weather?q=Hangzhou&apikey=15769c3c6d51ee0c350c9a12e05e587e&units=metric'
}